<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<tiles:insert page="/general/templateLoggedIn.jsp">
	<tiles:put name="title" value="Verification Page"/>
	<tiles:put name="nav"/>
	<tiles:put name="content" type="string">

	<h2>Verification</h2>
		
		<h3>Application Status: <c:out value="${sessionScope.applicant.applicationStatus}"/></h3>
		
		<h3>General Information</h3>
			<table>
				<tr><td>First Name:</td><td><c:out value="${sessionScope.applicant.firstName}"/></td></tr>
				<tr><td>Middle Initial:</td><td><c:out value="${sessionScope.applicant.middleInitial}"/></td></tr>
				<tr><td>Last Name:</td><td><c:out value="${sessionScope.applicant.name}"/></td></tr>
				<tr><td>Country of Citizenship:</td><td><c:out value="${sessionScope.applicant.countryOfCitizenship}"/></td></tr>
				<tr><td>Country of Residence:</td><td><c:out value="${sessionScope.applicant.countryOfResidence}"/></td></tr>
				<tr><td>Street:</td><td><c:out value="${sessionScope.applicant.street}"/></td></tr>
				<tr><td>City:</td><td><c:out value="${sessionScope.applicant.city}"/></td></tr>
				<tr><td>ZIP/Postal Code:</td><td><c:out value="${sessionScope.applicant.zip}"/></td></tr>
				<c:choose>
					<c:when test="${sessionScope.applicant.usResidence == true}">
						<tr><td>State:</td><td>${sessionScope.applicant.state}</td></tr>
					</c:when>
					<c:otherwise>	
						<tr><td>Country Phone Code:</td><td>${sessionScope.applicant.countryPhoneCode}</td></tr>
					</c:otherwise>
				</c:choose>
				<tr><td>Area code:</td><td>${sessionScope.applicant.areaCode}</td></tr>
				<tr><td>Number:</td><td>${sessionScope.applicant.number}</td></tr>
				<c:choose>
					<c:when test="${sessionScope.applicant.usResidence == true}">
						<tr><td>Domestic:</td><td>Yes</td></tr>
					</c:when>
					<c:otherwise>
						<tr><td>Domestic:</td><td>No</td></tr>
					</c:otherwise>
				</c:choose>
				<tr><td>Specialization:</td><td><c:out value="${sessionScope.applicant.specialization}"/></td></tr>
			</table>
					
		<c:forEach var="degree" items="${sessionScope.degrees}">
			<h3>Degree</h3>
			<table>
				<tr><td>State/Country:</td><td>${degree.location}</td></tr>
				<tr><td>University:</td><td>${degree.university}</td></tr>
				<tr><td>Discipline:</td><td>${degree.discipline}</td></tr>
				<tr><td>Degree Award:</td><td>${degree.month}/${degree.year}</td></tr>
				<tr><td>GPA:</td><td>${degree.gpa}</td></tr>
				<tr><td>Title:</td><td>${degree.title}</td></tr>
			</table>
		</c:forEach>
		
	</tiles:put>
</tiles:insert>